/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Manager_Image_Utils;

import java.awt.image.BufferedImage;
import java.io.File;
import javax.swing.Icon;
import javax.swing.JLabel;

/**
 *
 * @author Admin
 */
public class ImageView extends  JLabel{
    private float zoom;
    private int rotate;
    private BufferedImage imagelarge;
    private BufferedImage imagenomal;
    private File file;

    public File getFile() {
        return file;
    }

    public ImageView(File file, Icon image) {
        super(image);
        this.file = file;
    }

    public void setFile(File file) {
        this.file = file;
    }
    private int x,y;// for rotate
    public int getx(){
        return x;
    }
    public void setx(int x) {
        this.x = x;
    }
    public int gety(){
        return y;
    }
    public void sety(int y) {
        this.y = y;
    }
    public float getZoom() {
        return zoom;
    }

    public void setZoom(float zoom) {
        this.zoom = zoom;
    }

    public int getRotate() {
        return rotate;
    }

    public void setRotate(int rotate) {
        this.rotate = rotate;
    }

    public BufferedImage getImagelarge() {
        return imagelarge;
    }

    public void setImagelarge(BufferedImage imagelarge) {
        this.imagelarge = imagelarge;
    }

    public BufferedImage getImagenomal() {
        return imagenomal;
    }

    public void setImagenomal(BufferedImage imagenomal) {
        this.imagenomal = imagenomal;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y, String text, Icon icon, int horizontalAlignment) {
        super(text, icon, horizontalAlignment);
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y, String text, int horizontalAlignment) {
        super(text, horizontalAlignment);
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y, String text) {
        super(text);
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y, Icon image, int horizontalAlignment) {
        super(image, horizontalAlignment);
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y, Icon image) {
        super(image);
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    public ImageView(float zoom, int rotate, BufferedImage imagelarge, BufferedImage imagenomal, File file, int x, int y) {
        this.zoom = zoom;
        this.rotate = rotate;
        this.imagelarge = imagelarge;
        this.imagenomal = imagenomal;
        this.file = file;
        this.x = x;
        this.y = y;
    }

    
    
}
